﻿using DongFangGuoKai.WMSPlatform.Core.Repository;
using DongFangGuoKai.WMSPlatform.Domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace DongFangGuoKai.WMSPlatform.Service.StackingStorageApp
{
    public partial class StackingStorageService : IStackingStorageService
    {


        public StackingStorageService(IRepository<TStackingStorage> stackingRepo,
            IRepository<TStackingStorageDetail> stackingDetail)
        {
            StackingRepo = stackingRepo;
            StackingDetailRepo = stackingDetail;
        }

        public IRepository<TStackingStorage> StackingRepo { get; }
        public IRepository<TStackingStorageDetail> StackingDetailRepo { get; }

        public TStackingStorage GetStackingStorage(Expression<Func<TStackingStorage, bool>> predicate)
        {
            return StackingRepo.Get(predicate);
        }

    }
}
